<template>
  <div class="layout">
    <div class="left">
      <el-image :src="Img" fit="cover" />
      <div class="text">
        <p class="music">
          千千阙歌
          <el-icon size="20" color="#7D829E"><Eleme /></el-icon>
        </p>
        <p class="name">陈惠琳</p>
      </div>
    </div>

    <div class="middle">
      <div class="top">
        <el-icon size="28" color="#7D829E"><DeleteFilled /></el-icon>
        <el-icon size="28" color="#7D829E"><DArrowLeft /></el-icon>
        <el-icon size="28" color="#7D829E"><DCaret /></el-icon>
        <el-icon size="28" color="#7D829E"><DArrowRight /></el-icon>
      </div>
      <div class="bottom">
        <span class="begin">3:25</span>
        <el-slider v-model="time" :show-tooltip="false" :dot-size="0" />
        <span class="end">05:45</span>
      </div>
    </div>

    <div class="right">
      <el-icon style="margin-right: 24px" size="20" color="#7D829E"><Mic /></el-icon>
      <el-icon size="20" color="#7D829E"><Fold /></el-icon>
    </div>
  </div>
</template>

<script setup>
import {
  Eleme,
  Mic,
  Fold,
  DeleteFilled,
  DArrowLeft,
  DCaret,
  DArrowRight
} from '@element-plus/icons-vue'
import { ref } from 'vue'
import Img from '../../assets/images/avatar.jpg'

const time = ref(25)
</script>

<style lang="scss" scoped>
.layout {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  .left {
    display: flex;
    align-items: center;

    width: 450px;
    height: 100%;

    .el-image {
      width: 60px;
      height: 60px;
      border-radius: 5px;
    }

    .text {
      margin-left: 20px;
      font-size: 20px;
      line-height: 28px;
      letter-spacing: 0px;

      /* 外部/字体色 */
      color: #363d62;

      .name {
        margin-top: 8px;
        font-size: 16px;
        line-height: 22px;
        letter-spacing: 0px;

        color: #7d829e;
      }
    }
  }

  .middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 293px;
      height: 28px;
    }

    .bottom {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 600px;

      font-size: 12px;
      line-height: 17px;
      letter-spacing: 0px;

      /* 外部/字体2 */
      color: #7d829e;

      .slider-demo-block .el-slider {
        margin-top: 0;
        margin-left: 12px;
      }
      :deep(.el-slider__bar) {
        background-color: #f56c6c;
        border-color: transparent;
      }

      .begin {
        margin-right: 20px;
      }

      .end {
        margin-left: 20px;
      }
    }
  }

  .right {
    padding: 8px 40px 8px 0;
    text-align: right;
    width: 303px;
  }
}
</style>
